//
//  N2STAppDelegate.h
//  N2ST
//
//  Created by Eduardo Oliveros on 30/12/08.
//  Copyright Eduardo Oliveros 2008. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ProgressAlert.h"


@interface TaskNode:NSObject {
	NSString* taskName;
	NSString* taskDuration;
	NSString* taskID;
};
@property (nonatomic, retain) NSString* taskName;
@property (nonatomic, retain) NSString* taskDuration;
@property (nonatomic, retain) NSString* taskID;
@end

@interface ProjectNode:NSObject {
	NSString* projectName;
	NSString* projectID;
	NSMutableArray* tasks;
};
@property (nonatomic, retain) NSString* projectName;
@property (nonatomic, retain) NSString* projectID;
@property (nonatomic, retain) NSMutableArray* tasks;
@end

@interface N2STAppDelegate : NSObject <UIApplicationDelegate> {
	IBOutlet UIWindow *window;
	IBOutlet UINavigationController *navigationController;
	ProgressAlert* progressAlert;
@private
	NSString* keysec;
	NSMutableDictionary *loginDict;
@public
	NSMutableArray* projects;
}

@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) UINavigationController *navigationController;
@property (nonatomic, retain) NSString* keysec;
@property (nonatomic, retain) NSMutableDictionary* loginDict;
@property (nonatomic, retain) NSMutableArray* projects;

-(void) syncNozbe;
-(void)performSyncNozbe:(id)param;
-(void) showWindow;
-(id) objectWithUrl:(NSURL *)url;
-(void) redrawAlert:(NSString*)message;
-(NSString*) getDataFileName;
-(void) completeAction:(NSInteger)nTask ofProject:(NSInteger)nProject;

@end

